package lib.bone.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(value = "用户登录表单",description = "传入账号密码，用于用户登录")
public class LoginBody {
    @NotEmpty(message = "登录账号不可为空")
    @ApiModelProperty("用户账号")
    String username;
    @NotEmpty(message = "密码不可为空")
    @ApiModelProperty("用户密码")
    String password;
    @ApiModelProperty("验证码")
    String code;
    @ApiModelProperty("验证码唯一ID")
    String uuid;
}
